package com.model.dto.sys.LoginController;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * @Author: zql
 * @Description: 通过邮箱获取验证码
 * @Data: 8:46 2021/7/22
 */
@Data
public class GetCodeByEmailDTO {
    /** 邮箱 */
    @ApiModelProperty(value = "邮箱长度限制为50")
    @Size(min = 0, max = 50, message = "邮箱长度限制为50")
    @Pattern(regexp = "\\b[\\w.%+-]+@[\\w.-]+\\.[a-zA-Z]{2,6}\\b", message = "邮箱格式不合法")
    String email;
}
